#include <stm8s_tim2.h>

void TIM2_SetCompare2(uint16_t Compare2)
{
  /* Set the Capture Compare2 Register value */
  TIM2->CCR2H = (uint8_t)(Compare2 >> 8);
  TIM2->CCR2L = (uint8_t)(Compare2);
}

/**
  * @brief  Sets the TIM2 Capture Compare3 Register value.
  * @param   Compare3 specifies the Capture Compare3 register new value.
  * This parameter is between 0x0000 and 0xFFFF.
  * @retval None
  */
